package com.hsp.homework.homework11;

public class HomeWork11 {
    public static void main(String[] args) {
        Person person = new Student();//向上转型
        person.eat();
        person.run();
        System.out.println("------------------");
        Student student = (Student) person;
        student.study();
        student.run();
        student.eat();

    }
}
